package globalvar

import (
	"logbeat/internal/conf"
	"time"

	"github.com/panjf2000/ants"
	"gorm.io/gorm"
)

var DB *gorm.DB

// 这是一个 包含两个索引的字符串 通道（chan）
var TxtChan chan [2]string = make(chan [2]string)
var ChMap = make(map[string]LogDirStruct)
var SysConf = &conf.Config{}
var ConfigFile string

// 创建一个每5分钟触发一次的Ticker
var Ticker = time.NewTicker(15 * time.Second)

type LogDirStruct struct {
	DirPath     string
	IndexPrefix string
	LogFileName string
	AntsPool    *ants.Pool
}
